import request from '@/utils/request'
export function reg(params){
	return request({
    url: '/auth/reg',
    method: 'post',
		data: params
  })
}
export function getUserInfo(params){
	return request({
    url: '/auth/me',
    method: 'get',
		params
  })
}
export function logout() {
  return request({
    url: '/auth/logout',
    method: 'get'
  })
}
export function login(params){
	return request({
    url: '/auth/login',
    method: 'post',
		data: params
  })
}
export function loginqq(params){
	return request({
    url: '/auth/qq/login.html',
    method: 'get',
		params
  })
}
export function loginwx(params){
	return request({
    url: '/auth/weixin/login.html',
    method: 'get',
		params
  })
}
export function sendMsg(params){
	return request({
    url: '/msg/send_msg.html',
    method: 'post',
		data: params
  })
}
export function resetPassword(params){
	return request({
    url: '/auth/reset_password',
    method: 'post',
		data: params
  })
}
export function bindPhone(params){
	return request({
    url: '/auth/bind_phone',
    method: 'post',
		data: params
  })
}
export function noMorePrompts(){
	return request({
    url: '/auth/no_more_prompts',
		method: 'get'
  })
}
export function qqCheck(params){
	return request({
    url: '/auth/users/qqCallback',
		method: 'get',
		params
  })
}
export function wxCheck(params){
	return request({
    url: '/auth/users/wxCallback',
		method: 'get',
		params
  })
}
export function createNewAccount(params){
	return request({
    url: '/auth/th/create_new_account',
		method: 'post',
		data:params
  })
}

export function bindAccount(params){
	return request({
    url: '/auth/th/bind_account',
		method: 'post',
		data:params
  })
}
export function refreshToken(params){
	return request({
    url: '/auth/refresh',
		method: 'get',
		params
  })
}